﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddAdmin.aspx.cs" Inherits="Admin1_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/Common.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .c_1 {
            width: 400px;
            margin: 0px auto;
            height: 130px;
        }

            .c_1 ul li {
                height: 25px;
                line-height: 25px;
                text-align: center;
                margin-top: 10px;
            }

        .btn {
            width: 400px;
            margin: 0px auto;
            height: 30px;
            line-height: 30px;
            text-align: center;
        }

        .c_1_right {
            width: 160px;
            float: left;
        }

        .c_1_left {
            width: 100px;
            float: left;
            text-align: right;
        }

        .c_1_y {
            width: 100px;
            float: left;
            text-align: left;
        }
    </style>
    <script type="text/javascript" language="javascript">
        function CustomValidator(source, arguments) {
            arguments.IsValid = true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="m_box">
            <div class="m_head">添加管理员</div>
            <div class="c_1" style="padding-top: 15%">
                <ul>
                    <li>
                        <div class="c_1_left">
                            <asp:Label ID="Label1" runat="server" Text="登录名称"></asp:Label></div>
                        <div class="c_1_right">
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
                        <div class="c_1_y">
                            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="*请输入4位数字"
                                ClientValidationFunction="CustomValidator" ControlToValidate="TextBox1"></asp:CustomValidator>
                        </div>
                    </li>
                    <li>
                        <div class="c_1_left">
                            <asp:Label ID="Label2" runat="server" Text="姓   名"></asp:Label></div>
                        <div class="c_1_right">
                            <asp:TextBox ID="TextBox2" runat="server" AUTOCOMPLETE="off"></asp:TextBox></div>
                        <div class="c_1_y">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ErrorMessage="*必填" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
                        </div>
                    </li>
                    <li>
                        <div class="c_1_left">
                            <asp:Label ID="Label3" runat="server" Text="密    码"></asp:Label></div>
                        <div class="c_1_right">
                            <asp:TextBox ID="TextBox3" runat="server" TextMode="Password" AUTOCOMPLETE="off"></asp:TextBox></div>
                        <div class="c_1_y">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                ErrorMessage="*必填" ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="btn">
                <asp:ImageButton ID="ImageButton1" runat="server"
                    OnClick="ImageButton1_Click" Height="23px" ImageUrl="~/image/que.gif"
                    Width="80px" />
            </div>
        </div>
    </form>
</body>
</html>
